package com.gm.baseplatform.testing;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

public class UserDAO extends HibernateDaoSupport {

	public void saveUser(User user) {
		this.getHibernateTemplate().save(user);
	}
	
	public void findUserByUnid(String unid) {
		User user = (User)this.getHibernateTemplate().get(User.class,unid);
		System.out.println("unid:" +user.getUnid()+",username:" + user.getUserName() + ",userpwd:" + user.getUserPwd());
		
		
	}
}
